#include "AttributeDTD.h"
#include <string.h>

AttributeDTD::AttributeDTD(const char * _name, Type _t, Necessity _n)
{
    name = _name;
    type = _t;
    necessity = _n;
}

string AttributeDTD::getName() const
{
    return name;
}

void AttributeDTD::setElementAssociated(const char * name)
{
    elementAssociated = name;
}

string AttributeDTD::getElementAssociated() const
{
    return elementAssociated;
}

void AttributeDTD::display() const
{
    printf("%s", name.c_str());
}
